package com.dianping.cat.alarm;

import java.util.Date;
import org.unidal.dal.jdbc.DataObject;









public class UserDefineRule
  extends DataObject
{
  private int m_id;
  private String m_content;
  private Date m_creationDate;
  private int m_keyId;
  private int m_maxId;

  public void afterLoad() {
/* 24 */     this.m_keyId = this.m_id;
/* 25 */     clearUsage();
  }


/* 29 */   public String getContent() { return this.m_content; }



/* 33 */   public Date getCreationDate() { return this.m_creationDate; }



/* 37 */   public int getId() { return this.m_id; }



/* 41 */   public int getKeyId() { return this.m_keyId; }



/* 45 */   public int getMaxId() { return this.m_maxId; }


  public UserDefineRule setContent(String content) {
/* 49 */     setFieldUsed(UserDefineRuleEntity.CONTENT, true);
/* 50 */     this.m_content = content;
/* 51 */     return this;
  }

  public UserDefineRule setCreationDate(Date creationDate) {
/* 55 */     setFieldUsed(UserDefineRuleEntity.CREATION_DATE, true);
/* 56 */     this.m_creationDate = creationDate;
/* 57 */     return this;
  }

  public UserDefineRule setId(int id) {
/* 61 */     setFieldUsed(UserDefineRuleEntity.ID, true);
/* 62 */     this.m_id = id;

/* 64 */     setFieldUsed(UserDefineRuleEntity.KEY_ID, true);
/* 65 */     this.m_keyId = id;
/* 66 */     return this;
  }

  public UserDefineRule setKeyId(int keyId) {
/* 70 */     setFieldUsed(UserDefineRuleEntity.KEY_ID, true);
/* 71 */     this.m_keyId = keyId;
/* 72 */     return this;
  }

  public UserDefineRule setMaxId(int maxId) {
/* 76 */     setFieldUsed(UserDefineRuleEntity.MAX_ID, true);
/* 77 */     this.m_maxId = maxId;
/* 78 */     return this;
  }


  public String toString() {
/* 83 */     StringBuilder sb = new StringBuilder(1024);

/* 85 */     sb.append("UserDefineRule[");
/* 86 */     sb.append("content: ").append(this.m_content);
/* 87 */     sb.append(", creation-date: ").append(this.m_creationDate);
/* 88 */     sb.append(", id: ").append(this.m_id);
/* 89 */     sb.append(", key-id: ").append(this.m_keyId);
/* 90 */     sb.append(", max-id: ").append(this.m_maxId);
/* 91 */     sb.append("]");
/* 92 */     return sb.toString();
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-alarm-3.0.0.jar!/com/dianping/cat/alarm/UserDefineRule.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */